package template.course;

public class WriteCourse extends Course {
    private boolean flag;

    public WriteCourse(boolean flag) {
        this.flag = flag;
    }

    @Override
    protected boolean needCheck() {
       return this.flag;
    }

    @Override
    protected void checkwork() {
        System.out.println("检查作业！");
    }
}
